package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderInstructionBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (OrderInstruction)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-14 14:41:20
 */
public interface OrderInstructionMapper {

    OrderInstructionBean queryById(String id);

    List<OrderInstructionBean> queryList(OrderInstructionBean orderInstruction);

    int insert(OrderInstructionBean orderInstruction);

    int update(OrderInstructionBean orderInstruction);

    int deleteById(String id);

    int deleteByBizId(@Param("bizId") String bizId, @Param("orderType")String orderType);

    int insertBatch(@Param("list") List<OrderInstructionBean> orderInstructionBeanList);

    List<OrderInstructionBean> queryByBizId(@Param("bizId") String bizId);

    int deleteByIds(@Param("ids") String ids);

    List<OrderInstructionBean> queryByOrderId(@Param("bizId")String bizId, @Param("orderType")String orderType);
}